﻿<?xml version="1.0" encoding="utf-8"?>
<!--
    This file is part of "Information Connections Engine".

    "Information Connections Engine" is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 2 of the License, or
    (at your option) any later version.

    "Information Connections Engine" is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with "Information Connections Engine".  If not, see http://www.gnu.org/license.
-->
<iceData xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="InformationConnectionsEngine.data">

  <!--This is the definition of the current node. This definition contains information about the node itself and information about how this node is connected to other nodes.-->
  <currentNode>

    <!--This is the definition of a node-->
    <!--The 'id' is unique and it's used to differentiate nodes(try to avoid conflit with other ice-data providers)-->
    <node id="myCurrentId">

      <!-- (Highly recommended) List of all actions the user can see on the node -->
      <actions>
        <!--'idref' is the id of the action you want to call (see settings xml file)-->
        <action idref="myActionId">
          <!--Here, you can insert information as a parameter of the action.-->
          <!--Example:-->
        </action>
      </actions>

      <!-- (optional) All information you can provide to use your theme. 
          Warning: this field override the information provided in the corresponding style-->
      <!--Example:
        <drawingInformation>
          <pictureURL>http://myServer.com/myPicure.jpeg</pictureURL>
        </drawingInformation>
      -->
      <drawingInformation>
      </drawingInformation>

      <!-- (optional) Duration (in milliseconds) before ICE seeks to refresh this node -->
      <refreshRate>1000</refreshRate>

      <!-- (optional) Specify the relative size of this node compare to the default size. Default size is 100%. Examples: 50% will display this node half the size of the normal size for a node of the same style; 200% will be twice the size -->
      <relativeSize>200%</relativeSize>

      <!-- (Highly recommended) id of the style you want to use (see settings xml file)-->
      <style>personStyle</style>

      <!-- (Highly recommended) This is the information used in the default node style and in the grammar of the relation (see below for more explanation). It's highly recommended to always provide a title in case the node style cannot be found.-->
      <title>X</title>

      <!-- Type of the entity (see settings xml file)-->
      <type>whatever type you want</type>

      <!-- url that is used to download this node, i.e. URL that generates XML to represent this node -->
      <url>http://myServer/myICEDataFileGenerator?id=myCurrentNodeId</url>

    </node>

    <!-- Definition of a link, i.e. connection between two nodes 
    The Id of a link must be unique. Avoid conflicts with other ice-data providers by using a specific root name
    'from' and 'to' are both id references to a node in this file. 'from' and 'to' allow to qualitfy the direction of the relation. E.g. X is an author of Y'. ATTENTION: you should ALWAYS have as many links as you have children!  -->

    <link id="myFirstLinkId" from="myCurrentId" to="myFirstNeighborId">

      <!-- (Highly recommended) List of all actions users can use on the link-->
      <actions>
        <!-- Reference to an action defined in settings xml file
        'idref' is the id of the action that will be called if user selects it-->
        <action idref="myActionId">
          <!-- Here, you can provide all information you want as a parameter of your action.-->
          <!--Example:-->
        </action>
      </actions>

      <!-- (Highly recommended) All information you can provide to use your style-->
      <!--Example:
        <drawingInformation>
          <pictureURL>http://myServer.com/myPicure.jpeg</pictureURL>
        </drawingInformation>
      -->
      <drawingInformation>

      </drawingInformation>

      <!-- We can apply a grammar to a link. Grammar format" "From_node_type_title verb To_node_type_title complement ". E.g., "person X helps person Y everyday"-->
      <grammar>
        <verb>
          <!-- Example: helps -->
        </verb>
        <complement>
          <!-- Example: everyday -->
        </complement>
      </grammar>

      <!-- (Highly recommended) This is the strength of the relation between the two entity from 1 to 100-->
      <!-- With this parameter you can visualy quantify the relation between nodes. The greater the numbe,r the more rigid the relation-->
      <strength>50.002</strength>

      <!-- (Highly recommended) This is reference of the style you want to use-->
      <style>
        <!--Example: myLinkStyle -->
      </style>

    </link>

  </currentNode>

  <!--This is the list of all children nodes. -->
  <neighbors>
    
    <!--This is the definition of a node-->
    <!--The 'id' is unique and it's used to differentiate nodes(try to avoid conflit with other ice-data providers)-->
    <node id="myFirstNeighborId">
      
      <!-- Type of the entity (see settings xml file)-->
      <type>this is the type of the neighbor</type>

      <!-- url that is used to download this node, i.e. URL that generates XML to represent this node -->
      <url>http://myServer/myICEDataFileGenerator?id=myNeighborsNodeId</url>

    </node>
    
  </neighbors>
</iceData>